package com.jnxx.task.mapper;

import com.jnxx.task.domain.Shop;

import java.util.List;

/**
 * shopMapper接口
 * 
 * @author ruoyi
 * @date 2024-01-08
 */
public interface ShopMapper 
{
    /**
     * 查询shop
     * 
     * @param id shop主键
     * @return shop
     */
    public Shop selectShopById(Long id);

    /**
     * 查询shop列表
     * 
     * @param shop shop
     * @return shop集合
     */
    public List<Shop> selectShopList(Shop shop);

    /**
     * 新增shop
     * 
     * @param shop shop
     * @return 结果
     */
    public int insertShop(Shop shop);

    /**
     * 修改shop
     * 
     * @param shop shop
     * @return 结果
     */
    public int updateShop(Shop shop);

    /**
     * 删除shop
     * 
     * @param id shop主键
     * @return 结果
     */
    public int deleteShopById(Long id);

    /**
     * 批量删除shop
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopByIds(Long[] ids);

    List<Shop> selectAllShop();
}
